package com.demo.Controller;

import com.demo.component.UserBeans;
import com.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

        @Autowired
        @Qualifier(value = "user1")
        private User user;
        public void saiHi() {
                System.out.println(user);
                User us = user;
                us.setName("Lisi");
                System.out.println(user);
        }

}
